import request from '@/utils/request'

//用户信息初始化	
export function imInit(data) {
	return request({
		url: '/im/user/init',
		method: 'get',
		params: data
	})
}

//发送信息给用户	
export function imSendMessage(data) {
	return request({
		url: '/im/message/sendMsg',
		method: 'post',
		data
	})
}
//获取自己	
export function imGet(data) {
	return request({
		url: '/im/user/get',
		method: 'get',
		params: data
	})
}
//获取群组的用户	
export function imChatUserList(data) {
	return request({
		url: '/im/user/chatUserList',
		method: 'get',
		params: data
	})
}

//获取聊天记录	
export function imMessageList(data) {
	return request({
		url: '/im/message/list',
		method: 'get',
		params: data
	})
}

//获取群信息	
export function imGroupGet(data) {
	return request({
		url: '/im/group/get',
		method: 'get',
		params: data
	})
}
//添加群成员	
export function imGroupAddUsers(data) {
	return request({
		url: '/im/group/addUsers',
		method: 'post',
		data
	})
}
//移除群成员	
export function imGroupRemoveUsers(data) {
	return request({
		url: '/im/group/removeUsers',
		method: 'post',
		data
	})
}


